lcPaint_DrawImage2 Home

Draws a raster image.

 BOOL lcPaint_DrawImage2 (
   HANDLE hLcWnd,
   HANDLE hImage,
   double X,
   double Y,
   double Width,
   double Height,
   int TranspMode,
   int TVal,
   HANDLE hPtbuf
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
hImage
  Handle to raster image.
X Y
  Image insertion point, left-bottom corner position in a drawing.
Width Height
  Defines image size (drawing units) on a drawing coordinate space. You must specify only one dimension (zero for other), other dimension will be calculated automatically, depends on the image proportions.
TranspMode
  Image transparency mode:
0 - no transparency,
1 - one color is transparent,
2 - transparent image (alpha blending)
TVal
  The meaning depends on TranspMode value:
0 - ignored,
1 - transparent color (COLORREF),
2 - alpha value (1-255)
hPtbuf
  Defines clipping polygon. Handle to points buffer or NULL if clipping is not used.
Points coordinates have range 0.0-1.0, where X=0.0, Y=0.0 is left-bottom corner of image rectangle, X=1.0, Y=1.0 is right-top corner or image rectangle.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  lcPaint_DrawImage